package cn.seaboot.admin.api.bean;


import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.validation.constraints.Size;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * POJO
 * 接口参数规则 [t_api_parameter_rule]
 * @author Mr.css on 2018-6-20
 */
@Schema(description = "接口参数规则 [t_api_parameter_rule] 实体类")
public class ApiParameterRule implements Serializable {

    /**
     * ID
     */
    @Schema(description = "ID")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    /**
     * 工程
     */
    @Size(max = 32)
    @Schema(description = "工程")
    private String projectId;
    /**
     * 映射ID
     */
    @Size(max = 64)
    @Schema(description = "映射ID")
    private String mappingId;
    /**
     * 参数ID
     */
    @NotNull
    @Size(max = 32)
    @Schema(description = "参数ID")
    private String parameterId;
    /**
     * 参数名
     */
    @Size(max = 64)
    @Schema(description = "参数名")
    private String parameterName;
    /**
     * 规则类型
     */
    @NotNull
    @Size(max = 32)
    @Schema(description = "规则类型")
    private String ruleType;
    /**
     * 规则配置
     */
    @Schema(description = "规则配置")
    private String rule;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getMappingId() {
        return mappingId;
    }

    public void setMappingId(String mappingId) {
        this.mappingId = mappingId;
    }

    public String getParameterId() {
        return parameterId;
    }

    public void setParameterId(String parameterId) {
        this.parameterId = parameterId;
    }

    public String getParameterName() {
        return parameterName;
    }

    public void setParameterName(String parameterName) {
        this.parameterName = parameterName;
    }

    public String getRuleType() {
        return ruleType;
    }

    public void setRuleType(String ruleType) {
        this.ruleType = ruleType;
    }

    public String getRule() {
        return rule;
    }

    public void setRule(String rule) {
        this.rule = rule;
    }
}
